package cn.telling.tianlianproduct.freightrules.dao;

import java.util.List;
import java.util.Map;

import cn.telling.tianlianproduct.freightrules.vo.ShopFreightRulesVo;
import cn.telling.tianlianproduct.freightrules.vo.ShopInfoVo;
/**
 * 
 * @ClassName: ShopFreightRulesMapper 
 * @Description: 店铺运费规则
 * @author wxl
 * @date 2015年9月16日 下午15:21
 *
 */
public interface ShopFreightRulesMapper {
	List<ShopFreightRulesVo> selectShopExpressCarrier(Map<String, Object> params);

	/**
	 * 删除已有的运费规则
	 * @author wxl
	 * @date：2015-09
	 * @param vo
	 */
	void deleteShopFreightRules(ShopInfoVo vo);
	/**
	 * 店铺运费规则插入数据
	 * @author wxl
	 * @Date:2015-09-17
	 * @param ls
	 */
	//void insertNewShopFreightRules(List<ShopFreightRulesVo> argsList);
	void insertNewShopFreightRules(Map<String, Object> params);
	
	/**
	 * 
	* <p>Title:selectShopExpressCarrierData</p>
	* <p>Description: 根据运费规则id产寻运费规则</p>
	* <p>Company:tianlian </p>
	* @author :wxl
	* @date :2015年9月30日上午11:40:26
	* @return:ShopFreightRulesVo
	 */
	List<ShopFreightRulesVo> selectShopExpressCarrierByArrayId(Map<String, Object> params);
	
	/**
	 * 
	* <p>Title:findShopFreightRulesByShopIdAndAreaId</p>
	* <p>Description:根据店铺id地区id查询店铺运费规则 </p>
	* <p>Company:tianlian </p>
	* @author :wxl
	* @date :2015年10月13日下午7:45:08
	* @return:ShopFreightRulesVo
	 */
	ShopFreightRulesVo findShopFreightRulesByShopIdAndAreaId(
			Map<String, Object> params);

	/**
	 * <p>Title:selectConsAddrByUserId</p>
	 * <p>Description:根据用户id查询默认收货地址和 省份id </p>
	 * <p>Company:tianlian </p>
	 * @author chenjun
	 * @data:2015年10月26号下午2:24:30
	 * @return ShopFreightRulesVo( cons_addr，province )
	 */
	public ShopFreightRulesVo selectConsAddrByUserId(Map<String, Object> params);
	
	/**
	 * 
	 */
	public String findAreaNameById(Map<String, Object> params);
	
}
